package cn.xej.easyexcel.common;

import cn.xej.easyexcel.mapper.UserMapper;
import cn.xej.easyexcel.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class Util {
    @Autowired
    private UserMapper userMapper;

    public List<User> users(){
        List<User> users = userMapper.getUsers();
        System.out.println(users);
        return users;
    }
}
